﻿using Core.DataAccess.Model;
using Core.Framework;
using System;
using System.Collections.Generic;

namespace Local.Interface
{
    public interface INodeInstallPackage
    {
        /// <summary>
        /// 添加一个Node包
        /// </summary>
        /// <param name="function"></param>
        /// <returns></returns>
        MethodResult<int> Add(NodePackage function);
        void InstallPackages(Action<KeyValuePair<string, string>> action, params string[] packages);

        /// <summary>
        /// 获取安装的Node列表
        /// </summary>
        /// <param name="pagination"></param>
        /// <returns></returns>
        MethodResult<Pagination> GetNodePackageList(Pagination pagination);

        void InstallSuccess(int id);
        void InstallError(int id);

    }
}
